//
//  UIColor+Util.h
//  JHFocusView
//
//  Created by winter on 15/9/22.
//  Copyright (c) 2015年 winter. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface UIColor (Util)

/// randomColor
+(UIColor *)randomColor;

+(UIColor *)randomColor:(CGFloat)alpha;

/// uicolor from HexString
///
///@param NSString* hexString
/// @return UIColor*
+(UIColor *)colorWithHexString:(NSString*)hexString;

/// uicolor from hexstring with alpha
///
/// @param NSString* hexString
/// @param CGFloat alpha
/// @return UIColor*
+(UIColor *)colorWithHexStringWithAlpha:(NSString*)hexString alpha:(CGFloat)alpha;

/// UIColor from rgba
///
///@param CGFloat red
///@param CGFloat green
///@param CGFloat blue
///@param CGFloat alpha
///@return UIColor*
+(UIColor*) colorWithRGBA:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;
@end
